package com.slz3.business.module.configManagement.conIndexVideo.steward;

import com.slz3.business.module.configManagement.conIndexVideo.domain.ConIndexVideo;
import com.slz3.business.module.configManagement.conIndexVideo.domain.ConIndexVideoCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class ConIndexVideoResponse {

    public static Mono<ServerResponse> add(ServerRequest req) {
        return req.bodyToMono(ConIndexVideo.class).flatMap(conIndexVideo ->
                ConIndexVideoResController.add(req, conIndexVideo)
        );
    }

    public static Mono<ServerResponse> delete(ServerRequest req) {
        return req.bodyToMono(ConIndexVideoCondition.class).flatMap(conIndexVideoCondition ->
                ConIndexVideoResController.delete(req, conIndexVideoCondition)
        );
    }

    public static Mono<ServerResponse> modify(ServerRequest req) {
        return req.bodyToMono(ConIndexVideo.class).flatMap(conIndexVideo ->
                ConIndexVideoResController.modify(req, conIndexVideo)
        );
    }


    public static Mono<ServerResponse> list(ServerRequest req) {
        return ConIndexVideoResController.list(req);
    }

    public static Mono<ServerResponse> info(ServerRequest req) {
        return ConIndexVideoResController.info(req);
    }

    public static Mono<ServerResponse> choice(ServerRequest req) {
        return ConIndexVideoResController.choice(req);
    }

    public static Mono<ServerResponse> auditSubmit(ServerRequest req) {
        return req.bodyToMono(ConIndexVideoCondition.class).flatMap(conIndexVideoCondition ->
                ConIndexVideoResController.auditSubmit(req, conIndexVideoCondition)
        );
    }

    public static Mono<ServerResponse> audit(ServerRequest req) {
        return req.bodyToMono(ConIndexVideoCondition.class).flatMap(conIndexVideoCondition ->
                ConIndexVideoResController.audit(req, conIndexVideoCondition)
        );
    }

    public static Mono<ServerResponse> auditReject(ServerRequest req) {
        return req.bodyToMono(ConIndexVideoCondition.class).flatMap(conIndexVideoCondition ->
                ConIndexVideoResController.auditReject(req, conIndexVideoCondition)
        );
    }

    public static Mono<ServerResponse> usingEnable(ServerRequest req) {
        return req.bodyToMono(ConIndexVideoCondition.class).flatMap(conIndexVideoCondition ->
                ConIndexVideoResController.usingEnable(req, conIndexVideoCondition)
        );
    }

    public static Mono<ServerResponse> usingDisable(ServerRequest req) {
        return req.bodyToMono(ConIndexVideoCondition.class).flatMap(conIndexVideoCondition ->
                ConIndexVideoResController.usingDisable(req, conIndexVideoCondition)
        );
    }   

}
